package com.canyou.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.canyou.basic.entity.media.MediaVO;
import com.canyou.basic.model.Media;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 上传文件资源表 Mapper 接口
 * </p>
 *
 * @author canyou
 * @since 2020-02-13
 */
public interface MediaMapper extends BaseMapper<Media> {

    /**
     * 根据资源id集合,获取上传文件信息
     *
     * @param ids 文件id集合
     * @return
     */
    List<MediaVO> getListByIds(@Param("ids") List<Long> ids);

}
